package com.ruleengine.task.impl;

import com.ruleengine.parser.ITaskContants;
import com.ruleengine.task.TaskType;

public class InvokerTask extends BaseTask {
    
    public InvokerTask() {
        super(TaskType.INVOKER);
    }

    private String target;
    private String invokerType;
    
    public String getTarget() {
        return target;
    }

    public void setTarget(String target) {
        this.target = target;
    }

    public String getInvokerType() {
        return invokerType;
    }

    public void setInvokerType(String invokerType) {
        this.invokerType = invokerType;
    }

    @Override
    public String toString() {
        // TODO Auto-generated method stub
        StringBuffer tag = new StringBuffer();
        tag.append("<"+ITaskContants.ELE_TAG_INVOKER+" "+ITaskContants.ATTRI_TAG_TARGET+"=\""+ getTarget()+"\" />");
        return tag.toString();
    }
    
}
